package com.powernode.config;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 微信小程序授权配置类
 */
@ApiModel("微信小程序授权配置类")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "wx.auth")
@RefreshScope
public class WxAuthConfig {
    @ApiModelProperty("微信小程序的appid")
    private String appid;

    @ApiModelProperty("微信小程序的密钥")
    private String secret;

    @ApiModelProperty("登录凭证校验接口URL")
    private String url;

    @ApiModelProperty("微信小程序固定密码")
    private String pwd;
}
